package com.pubinfo.passbook.common.model.http.eip;

import com.alibaba.fastjson.annotation.JSONField;
import com.pubinfo.passbook.common.entity.TSystemRole;
import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;

@Data
public class UserInformation extends UserInfo{

    @JSONField(name = "token")
    String token;

    @JSONField(name = "tSystemRoles")
    List<TSystemRole> tSystemRoles;

    public UserInformation() {
    }

    public UserInformation(UserInfo userInfo,String token,List<TSystemRole> tSystemRoles)
    {
        BeanUtils.copyProperties(userInfo,this);
        this.token=token;
        this.tSystemRoles=tSystemRoles;
    }

}
